<template>
    <a-card :bordered="false">
        <div class="table-operator">
           
            <a-button  shape="round" size="small" type="primary" icon="plus" @click="handleEdit({},'sysparamForm','新增')">添加</a-button>
        </div>

        <LTable
        ref="sysparamList"
        size="middle"
        rowKey="keyId"
        :formAttributes="formAttributes"
        :columns="columns"
        axiosUrl="/WxSysConfigController/page"
        :showPagination="true"
        :showQueryForm="true"
      >
        <span slot="action" slot-scope="text, record">
          <a @click="handleEdit(record,'sysparamForm','详情')">详细</a>
        </span>
    </LTable>
    <sysparamForm ref="sysparamForm" @close="refresh('sysparamList')" @ok="refresh('sysparamList')"></sysparamForm> 
    
    </a-card>
</template>

<script>
import LTable from '@/components/lt/LTable'
import request from '@/utils/request'
import sysparamForm from './sysparamForm'
import {SysMixin} from '@/mixins/SysMixin'
import {filterDictText} from '@/utils/util'


export default {
    name:'sysparamList',
    components:{
       LTable,sysparamForm
    },
    mixins:[SysMixin],
    data(){
        return{
            formAttributes:[
                {field:'paramRemark',label:'参数说明',component:'input'},
            ],
         
            columns:[
                {
                  
                    title: '序号',
                    dataIndex: '',
                    key:'rowIndex',
                    width:60,
                    align:"center",
                    customRender:function (t,r,index) {
                      return parseInt(index)+1;
                    }
                },
                 {
                    title: '参数编码',
                    dataIndex: 'paramCode',
                    width: 150,
                    
                },
                {
                    title: '参数值',
                    dataIndex: 'paramVal',
                    width: 300,
                    ellipsis: true,
                    
                },
                {
                    title: '参数说明',
                    dataIndex: 'paramRemark',
                    width: 200,
                    ellipsis: true,
                },
                
                {
                    title: '操作',
                    dataIndex: 'action',
                    width: '100px',
                    scopedSlots: { customRender: 'action' }
                }
            ],
            
        }
    },
    created(){
       
    },
    methods:{
      
    }
}
</script>